package com.bit.frige.Tip;

import com.bit.frige.R;
import com.bit.frige.R.layout;
import com.bit.frige.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

public class TipActivity extends Activity {
	private ImageButton btn1;
	private ImageButton btn2;
	private ImageButton btn3;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_tip);
		btn1 = (ImageButton) findViewById(R.id.imageButton1);
		btn1.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(getApplicationContext(),
						ManageActivity.class);
				startActivity(intent);
			}
		});
		btn2 = (ImageButton) findViewById(R.id.imageButton2);
		btn2.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(getApplicationContext(),
						CleanigActivity.class);
				startActivity(intent);
			}
		});

		btn3 = (ImageButton) findViewById(R.id.imageButton3);
		btn3.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(getApplicationContext(),
						VegActivity.class);
				startActivity(intent);
			}
		});

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.tip, menu);
		return true;
	}

}
